package com.oracle.xmlns.IngredientService.MenuServer2.GetMenuProcess;

public class GetMenuProcessProxy implements com.oracle.xmlns.IngredientService.MenuServer2.GetMenuProcess.GetMenuProcess {
  private String _endpoint = null;
  private com.oracle.xmlns.IngredientService.MenuServer2.GetMenuProcess.GetMenuProcess getMenuProcess = null;
  
  public GetMenuProcessProxy() {
    _initGetMenuProcessProxy();
  }
  
  public GetMenuProcessProxy(String endpoint) {
    _endpoint = endpoint;
    _initGetMenuProcessProxy();
  }
  
  private void _initGetMenuProcessProxy() {
    try {
      getMenuProcess = (new com.oracle.xmlns.IngredientService.MenuServer2.GetMenuProcess.Getmenuprocess_client_epLocator()).getGetMenuProcess_pt();
      if (getMenuProcess != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)getMenuProcess)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)getMenuProcess)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (getMenuProcess != null)
      ((javax.xml.rpc.Stub)getMenuProcess)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public com.oracle.xmlns.IngredientService.MenuServer2.GetMenuProcess.GetMenuProcess getGetMenuProcess() {
    if (getMenuProcess == null)
      _initGetMenuProcessProxy();
    return getMenuProcess;
  }
  
  public void process(java.lang.String input, com.oracle.xmlns.IngredientService.MenuServer2.GetMenuProcess.holders.DrinkArrayHolder drink, com.oracle.xmlns.IngredientService.MenuServer2.GetMenuProcess.holders.DayArrayHolder day) throws java.rmi.RemoteException{
    if (getMenuProcess == null)
      _initGetMenuProcessProxy();
    getMenuProcess.process(input, drink, day);
  }
  
  
}